package com.itheima.consumer.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * <dl>
 * <dd>描述: ~节点业务逻辑实现</dd>
 * <dd>创建时间：  15:33 2020/7/26</dd>
 * <dd>创建人： zz</dd>
 * <dt>版本历史: </dt>
 * <pre>
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2020/7/26      guodong       1.0        1.0 Version
 * </pre>
 * </dl>
 */
@Component
@RabbitListener(queues = "direct.A")
public class DirectAListener {

    @RabbitHandler
    public void receiveMsg(String msg){
        System.out.println("DirectAListener 接收到消息： " + msg);
    }
}
